gtk4.git
11 years agoreftests: Add reftest for new pseudoclass support
Benjamin Otte [Sun, 20 Jul 2014 23:00:40 +0000 (01:00 +0200)]
reftests: Add reftest for new pseudoclass support

11 years agoUpdated POTFILES.skip
Piotr Drąg [Sun, 20 Jul 2014 14:21:07 +0000 (16:21 +0200)]
Updated POTFILES.skip

11 years agoGtkTextView: use GSlice
Sébastien Wilmet [Sat, 19 Jul 2014 12:34:53 +0000 (14:34 +0200)]
GtkTextView: use GSlice

GSlice is better for allocating structs.

https://bugzilla.gnome.org/show_bug.cgi?id=733407

11 years agoUse AC_PATH_TOOL to find build tools.
Michał Górny [Thu, 12 Jun 2014 15:27:53 +0000 (17:27 +0200)]
Use AC_PATH_TOOL to find build tools.

This improves support for cross-compilation & multilib on Gentoo, where
tools proper for target arch/ABI are prefixed with CHOST.

https://bugzilla.gnome.org/show_bug.cgi?id=731582

11 years agoGtkDialog: Manage action area visibility more carefully
Matthias Clasen [Sun, 20 Jul 2014 05:05:41 +0000 (01:05 -0400)]
GtkDialog: Manage action area visibility more carefully

People expect to be able to call gtk_widget_show_all on the dialog
to make action widgets visible, as seen e.g. in
https://bugzilla.gnome.org/show_bug.cgi?id=733431

To keep this working, we can't always set no-show-all on the
action_box. Only set it when the action_area is not used and empty.

11 years agowidget-factory: Show accelerators
Matthias Clasen [Sun, 20 Jul 2014 04:40:11 +0000 (00:40 -0400)]
widget-factory: Show accelerators

We set this up manually here. This could be automated by
constructing the menubar from a menu model.

11 years agowidget-factory: Rename some widgets
Matthias Clasen [Sun, 20 Jul 2014 04:42:23 +0000 (00:42 -0400)]
widget-factory: Rename some widgets

11 years agowidget-factory: Add accelerators for some actions
Matthias Clasen [Sun, 20 Jul 2014 04:15:03 +0000 (00:15 -0400)]
widget-factory: Add accelerators for some actions

With this, Ctrl-Q will close the window, and Ctrl-D will
toggle the dark theme. The accelerators are currently not
shown in the (manually constructed) menus.

11 years agoGtkMenuItem: fix display of accelerators
Matthias Clasen [Sun, 20 Jul 2014 04:12:40 +0000 (00:12 -0400)]
GtkMenuItem: fix display of accelerators

The accel label in menus was getting a small allocation that
caused its draw code to always omit the accelerator string.
Fix that by setting halign to fill. To keep the menu label
left-aligned, set xalign to 0 to compensate.

11 years agoGtkModelMenuItem: Make properties readable
Matthias Clasen [Sun, 20 Jul 2014 03:40:27 +0000 (23:40 -0400)]
GtkModelMenuItem: Make properties readable

This makes the inspector much more useful when dealing
with model menu items.

11 years agoGtkAccelLabel: unconditionally chain up in draw
Matthias Clasen [Sun, 20 Jul 2014 03:37:43 +0000 (23:37 -0400)]
GtkAccelLabel: unconditionally chain up in draw

No need to check, we know for sure that GtkLabel has a draw
function.

11 years agobloatpad: Add a close button to the accel dialog
Matthias Clasen [Sat, 19 Jul 2014 23:42:56 +0000 (19:42 -0400)]
bloatpad: Add a close button to the accel dialog

11 years agoinspector: Add a font button to the visual tab
Matthias Clasen [Sat, 19 Jul 2014 23:15:58 +0000 (19:15 -0400)]
inspector: Add a font button to the visual tab

The font was already settable via the gtk-font-name property
of the settings object, but this this much more convenient.

11 years agoGtkSpinButton: Document some signals
Gergely POLONKAI [Thu, 17 Jul 2014 06:41:00 +0000 (06:41 +0000)]
GtkSpinButton: Document some signals

Based on a patch by Gergely Polonkai,
https://bugzilla.gnome.org/show_bug.cgi?id=733174

11 years agoTrivial: Use the canonical signal name
Matthias Clasen [Sat, 19 Jul 2014 22:27:27 +0000 (18:27 -0400)]
Trivial: Use the canonical signal name

11 years agoTrivial: Move resources into the same prefix
Matthias Clasen [Sat, 19 Jul 2014 21:37:15 +0000 (17:37 -0400)]
Trivial: Move resources into the same prefix

11 years agonotebook: Don't unset state flags on child removal
Benjamin Otte [Sat, 19 Jul 2014 21:48:06 +0000 (23:48 +0200)]
notebook: Don't unset state flags on child removal

We don't set any state flags, so we shouldn't unset any either.

11 years agowidget: Add widget state when appending to widget path
Benjamin Otte [Sat, 19 Jul 2014 21:41:42 +0000 (23:41 +0200)]
widget: Add widget state when appending to widget path

Make gtk_widget_path_append_for_widget() add the state flags of the
widget, too.

This enables the ability to select pseudoclasses on all elements in a
selector.

11 years agocssmatcher: Use widget path's state
Benjamin Otte [Sat, 19 Jul 2014 21:26:12 +0000 (23:26 +0200)]
cssmatcher: Use widget path's state

Don't take a state when constructing the CSS matcher. Instead, rely on
the newly introduced state in the widget path.

This way, the state can be queried not only on the first element, but on
all elements of the widget path.

11 years agostylecontext: Set state flags on widget paths
Benjamin Otte [Fri, 18 Jul 2014 18:12:39 +0000 (20:12 +0200)]
stylecontext: Set state flags on widget paths

Set the widget path state flags with the state flags of the style
context.

We do not update the state flags but replace the previous one because we
want to be able to have save()/restore() unset state flags.

11 years agoAPI: Add gtk_widget_path_iter_set_state()
Benjamin Otte [Fri, 18 Jul 2014 18:07:27 +0000 (20:07 +0200)]
API: Add gtk_widget_path_iter_set_state()

And the corresponding gtk_widget_path_iter_get_state().

11 years agoAdwaita: suble gradient on progressbars
Lapo Calamandrei [Sat, 19 Jul 2014 13:42:17 +0000 (15:42 +0200)]
Adwaita: suble gradient on progressbars

11 years agoAdwaita: progressbar tweaks
Lapo Calamandrei [Sat, 19 Jul 2014 12:03:28 +0000 (14:03 +0200)]
Adwaita: progressbar tweaks

11 years agoAdwaita: insensitive backdrop state restyle
Lapo Calamandrei [Sat, 19 Jul 2014 09:11:44 +0000 (11:11 +0200)]
Adwaita: insensitive backdrop state restyle

Make backdrop insensitive state more similar to the focused
windows one, mostly to make dark variant more usable and
focused -> backdrop transition less distracting.

11 years agoAdwaita: some code refactoring
Lapo Calamandrei [Sat, 19 Jul 2014 08:50:01 +0000 (10:50 +0200)]
Adwaita: some code refactoring

11 years agoAdwaita: more progressbar shadows
Lapo Calamandrei [Sat, 19 Jul 2014 07:59:10 +0000 (09:59 +0200)]
Adwaita: more progressbar shadows

11 years agoAdwaita: widget edge for level bars
Lapo Calamandrei [Sat, 19 Jul 2014 07:02:07 +0000 (09:02 +0200)]
Adwaita: widget edge for level bars

11 years agoInspector: Show directory sizes in the resource tab
Matthias Clasen [Sat, 19 Jul 2014 05:20:28 +0000 (01:20 -0400)]
Inspector: Show directory sizes in the resource tab

This is makes it easy to answer the question: how much do resources
cost. It turns out that all the resources in GTK+ currently weigh
around 1MB.

11 years agoGtkProgressBar: Add style classes for edges
Matthias Clasen [Sat, 19 Jul 2014 04:40:09 +0000 (00:40 -0400)]
GtkProgressBar: Add style classes for edges

Add left/right/top/bottom style classes according to which edge(s)
of the progressbar the progress is adjacent to. Only for a fraction
of 1.0 will we set more than one edge.

11 years agoGtkFlowBox: Add a missing #include
Matthias Clasen [Sat, 19 Jul 2014 03:00:54 +0000 (23:00 -0400)]
GtkFlowBox: Add a missing #include

11 years agoGtkToolbar: Set orientable style classes initially
Matthias Clasen [Fri, 18 Jul 2014 23:40:12 +0000 (19:40 -0400)]
GtkToolbar: Set orientable style classes initially

This was an omission, horizontal/vertical would only be set
when the orientation is changed.

11 years agoGtkSpinButton: Set orientable style classes initially
Matthias Clasen [Fri, 18 Jul 2014 23:39:56 +0000 (19:39 -0400)]
GtkSpinButton: Set orientable style classes initially

This was an omission, horizontal/vertical would only be set
when the orientation is changed.

11 years agoGtkSeparator: Set orientable style classes initially
Matthias Clasen [Fri, 18 Jul 2014 23:39:44 +0000 (19:39 -0400)]
GtkSeparator: Set orientable style classes initially

This was an omission, horizontal/vertical would only be set
when the orientation is changed.

11 years agoGtkRange: Set orientable style classes initially
Matthias Clasen [Fri, 18 Jul 2014 23:39:32 +0000 (19:39 -0400)]
GtkRange: Set orientable style classes initially

This was an omission, horizontal/vertical would only be set
when the orientation is changed.

11 years agoGtkProgressBar: Set orientable style classes initially
Matthias Clasen [Fri, 18 Jul 2014 23:39:11 +0000 (19:39 -0400)]
GtkProgressBar: Set orientable style classes initially

This was an omission, horizontal/vertical would only be set
when the orientation is changed.

11 years agoGtkPaned: Set orientable style classes initially
Matthias Clasen [Fri, 18 Jul 2014 23:38:56 +0000 (19:38 -0400)]
GtkPaned: Set orientable style classes initially

This was an omission, horizontal/vertical would only be set
when the orientation is changed.

11 years agoGtkGrid: Set orientable style classes initially
Matthias Clasen [Fri, 18 Jul 2014 23:38:37 +0000 (19:38 -0400)]
GtkGrid: Set orientable style classes initially

This was an omission, horizontal/vertical would only be set
when the orientation is changed.

11 years agoGtkFlowBox: Set orientable style classes initially
Matthias Clasen [Fri, 18 Jul 2014 23:38:16 +0000 (19:38 -0400)]
GtkFlowBox: Set orientable style classes initially

This was an omission, horizontal/vertical would only be set
when the orientation is changed.

11 years agoGtkBox: Set orientable style classes initially
Matthias Clasen [Fri, 18 Jul 2014 23:37:33 +0000 (19:37 -0400)]
GtkBox: Set orientable style classes initially

This was an omission, horizontal/vertical would only be set
when the orientation is changed.

11 years agoAdwaita: better colorswatches for the dark theme
Lapo Calamandrei [Fri, 18 Jul 2014 21:48:33 +0000 (23:48 +0200)]
Adwaita: better colorswatches for the dark theme

...which reveals a "nice" border/fill border radius issue.

11 years agoGtkLevelBar: implement clipping
Matthias Clasen [Fri, 18 Jul 2014 21:47:20 +0000 (17:47 -0400)]
GtkLevelBar: implement clipping

So level bars can have shadows, too.

11 years agoAdwaita: widget edge for switch and progressbars
Lapo Calamandrei [Fri, 18 Jul 2014 21:30:16 +0000 (23:30 +0200)]
Adwaita: widget edge for switch and progressbars

11 years agoGtkSwitch: implement clipping
Matthias Clasen [Fri, 18 Jul 2014 20:37:18 +0000 (16:37 -0400)]
GtkSwitch: implement clipping

So switches can have shadows, too.

https://bugzilla.gnome.org/show_bug.cgi?id=733360

11 years agoGtkProgressBar: implement clipping
Matthias Clasen [Fri, 18 Jul 2014 20:31:17 +0000 (16:31 -0400)]
GtkProgressBar: implement clipping

This allows progress bars to have shadows.

https://bugzilla.gnome.org/show_bug.cgi?id=733361

11 years agoTrivial cleanup
Matthias Clasen [Fri, 18 Jul 2014 18:33:09 +0000 (14:33 -0400)]
Trivial cleanup

11 years agowayland: Update xdg-shell
Jasper St. Pierre [Thu, 17 Jul 2014 21:28:04 +0000 (17:28 -0400)]
wayland: Update xdg-shell

11 years agogdkwindow-wayland: Take out the margins for now
Jasper St. Pierre [Thu, 17 Jul 2014 20:48:34 +0000 (16:48 -0400)]
gdkwindow-wayland: Take out the margins for now

xdg-shell has moved on and replaced set_margin with set_window_geometry.
To properly support set_window_geometry requires a full rewrite of how
we've been dealing with toplevel windows for now, so just don't set any
margin until we can have a proper toplevel window abstraction in GTK+.

11 years agogtkwindow: Clean up gtk_window_move_resize a bit more
Jasper St. Pierre [Thu, 17 Jul 2014 15:46:21 +0000 (11:46 -0400)]
gtkwindow: Clean up gtk_window_move_resize a bit more

Don't shadow existing variables. Instead of sharing the allocation and
then overwriting the width/height when convenient, declare it in the
block we use it in, as, really, the three different paths are all
extremely different, and there's no sense in sharing the variable.

11 years agogtkwindow: Remove a bogus comment
Jasper St. Pierre [Thu, 17 Jul 2014 15:03:27 +0000 (11:03 -0400)]
gtkwindow: Remove a bogus comment

gtk_window_configure_event certainly doesn't fill the new allocation
in. We're filling it in right here!

11 years agoicon-browser: Improve the look a tiny bit
Jasper St. Pierre [Thu, 17 Jul 2014 17:09:48 +0000 (13:09 -0400)]
icon-browser: Improve the look a tiny bit

Add some padding and a border around the scrolled window.

11 years agoGtkDialog: Be more careful in handling the headerbar
Matthias Clasen [Thu, 17 Jul 2014 16:53:54 +0000 (12:53 -0400)]
GtkDialog: Be more careful in handling the headerbar

Just because an action widget has a parent thats a headerbar,
it is not guaranteed that it is 'our' headerbar. Add some
assertions to enforce this.

11 years agoGtkDialog: rejigger headerbar handling
Matthias Clasen [Thu, 17 Jul 2014 16:49:57 +0000 (12:49 -0400)]
GtkDialog: rejigger headerbar handling

We can't avoid calling set_titlebar in buildable_add_child, since
GtkBuilder assumes that it can e.g. call grab_default at the end,
which only works if the widget is inside a toplevel at that point.

Instead, drop the titlebar and clean up priv->headerbar in constructed
if we find that we don't want a headerbar.

11 years agoAdd another dialog to test
Matthias Clasen [Thu, 17 Jul 2014 16:11:35 +0000 (12:11 -0400)]
Add another dialog to test

This one is taken from polari, and currently doesn't work
as expected.

11 years agotextiter: fix bug in find_visible_by_log_attrs()
Sébastien Wilmet [Tue, 15 Jul 2014 17:02:54 +0000 (19:02 +0200)]
textiter: fix bug in find_visible_by_log_attrs()

find_by_log_attrs() can return true only in this case:
return moved && !gtk_text_iter_is_end (arg_iter);

So if the iter moved (i.e. something has been found), but is the end
iter, find_by_log_attrs() returns false.

Now the same checks are made in find_visible_by_log_attrs(). The public
functions using find_visible_by_log_attrs() say in their documentation
that false is returned for the end iter, hence the check with
gtk_text_iter_is_end().

https://bugzilla.gnome.org/show_bug.cgi?id=618852

11 years agotextiter: fix bug in FindLogAttrFunc functions
Sébastien Wilmet [Tue, 15 Jul 2014 15:07:14 +0000 (17:07 +0200)]
textiter: fix bug in FindLogAttrFunc functions

attrs[len] is the last PangoLogAttr available, at the iter position after the
last character of the line.

For a line in the middle or the start of the buffer, the '\n' is taken
into account by 'len'. For example the is_word_end is generally reached
before the '\n', not after. But for the last line in the buffer, where
there is no trailing '\n', it is important to test until attrs[len].

The bug didn't occur before because find_by_log_attrs() worked directly
on the iter passed as the function argument. But now it is no longer the
case.

https://bugzilla.gnome.org/show_bug.cgi?id=618852

11 years agotextiter: make the FindLogAttrFunc functions clearer
Sébastien Wilmet [Tue, 15 Jul 2014 13:24:36 +0000 (15:24 +0200)]
textiter: make the FindLogAttrFunc functions clearer

- Return true (found) and false (not found) explicitly.
- Set found_offset only when something has been found.

find_backward_cursor_pos_func() was a bit different, the while loop had
the condition "offset > 0" but the return was "offset >= 0". Probably a
micro-optimization, since offset == 0 is always a cursor position.
Anyway now the code is the same as the other functions.

https://bugzilla.gnome.org/show_bug.cgi?id=618852

11 years agotextiter: simplify FindLogAttrFunc
Sébastien Wilmet [Tue, 15 Jul 2014 12:51:02 +0000 (14:51 +0200)]
textiter: simplify FindLogAttrFunc

The min_offset parameter was always 0. Since there are some bugs in this
code, it'll be clearer if there are fewer parameters.

https://bugzilla.gnome.org/show_bug.cgi?id=618852

11 years agotextiter: fix bug in find_by_log_attrs()
Sébastien Wilmet [Sun, 13 Jul 2014 20:20:25 +0000 (22:20 +0200)]
textiter: fix bug in find_by_log_attrs()

Do not work with the iter passed as the function argument. Work with
another iter, and set it back to the function argument only if something
has been found.

This fixes a few unit tests. But there are regressions for a few others.

https://bugzilla.gnome.org/show_bug.cgi?id=618852

11 years agotests textiter: unit tests for sentence boundaries
Sébastien Wilmet [Sun, 13 Jul 2014 20:04:04 +0000 (22:04 +0200)]
tests textiter: unit tests for sentence boundaries

As the FIXME comment shows, there is a bug. It is the same bug as for
the word boundaries.

https://bugzilla.gnome.org/show_bug.cgi?id=618852

11 years agotests textiter: unit tests for visible word boundaries
Sébastien Wilmet [Sun, 13 Jul 2014 17:33:29 +0000 (19:33 +0200)]
tests textiter: unit tests for visible word boundaries

As the FIXME comments show, there are several problems.

https://bugzilla.gnome.org/show_bug.cgi?id=618852

11 years agoGtkPathBar: Add a style class
Matthias Clasen [Thu, 17 Jul 2014 10:48:36 +0000 (06:48 -0400)]
GtkPathBar: Add a style class

This will allow nautilus to reuse the style on its own
pathbar widget.

11 years agoGtkIconTheme: Make spinners scale in hi-dpi
Matthias Clasen [Thu, 17 Jul 2014 04:59:34 +0000 (00:59 -0400)]
GtkIconTheme: Make spinners scale in hi-dpi

The Adwaita icon theme ships spinners in a scalable directory
with MaxSize=32 and Scale=1. One way to make them scale up in
hi-dpi would be to add an @2 directory with MaxSize=32 and Scale=2,
but that directory would also be consulted in non hi-dpi situations
and give us an effective spinner max size of 64.

Instead, treat svg icons implicitly as hi-dpi, and scale them
up to MaxSize * 2 when in hi-dpi.

11 years agoGtkMenu: Don't subtract shadow from requisition
Volker Sobek [Tue, 15 Jul 2014 23:09:05 +0000 (01:09 +0200)]
GtkMenu: Don't subtract shadow from requisition

This was causing menus to show up in the wrong position in case the menu
popped up towards the top and/or left.

The change to the requisition was in error; it is the allocated size
of the menu, not the toplevel, and doesn't include the shadow.

https://bugzilla.gnome.org/show_bug.cgi?id=591258

11 years agoGtkStackSwitcher: Simplify setting of .needs-attention
Matthias Clasen [Thu, 17 Jul 2014 01:08:27 +0000 (21:08 -0400)]
GtkStackSwitcher: Simplify setting of .needs-attention

Always add the .needs-attention style class, even if the button
is active. Themes can already avoid showing anything in this case.

11 years agoAdwaita: increase padding on header-bar and action-bar text buttons
Lapo Calamandrei [Wed, 16 Jul 2014 17:47:54 +0000 (19:47 +0200)]
Adwaita: increase padding on header-bar and action-bar text buttons

11 years agoAdwaita: stack switcher needs-attention class style
Lapo Calamandrei [Wed, 16 Jul 2014 17:42:17 +0000 (19:42 +0200)]
Adwaita: stack switcher needs-attention class style

11 years agoGtkStackSwitcher: center the button child
Lapo Calamandrei [Wed, 16 Jul 2014 17:35:29 +0000 (19:35 +0200)]
GtkStackSwitcher: center the button child

Set button child halign to GTK_ALIGN_CENTER since I need it to style
the needs-attention class, see:
https://bugzilla.gnome.org/show_bug.cgi?id=707153

11 years agoAdwaita: Add back a margin of 4px to .menu
Volker Sobek [Wed, 16 Jul 2014 11:25:22 +0000 (13:25 +0200)]
Adwaita: Add back a margin of 4px to .menu

This had originally been added to Adwaita in the gnome-themes-standard
commit 7bf01517bc2 but was lost during 3.13 theme changes, causing bug
591258 to reappear.

11 years agoMSVC Introspection Builds: Filter Out gtkx.h
Chun-wei Fan [Wed, 16 Jul 2014 10:04:38 +0000 (18:04 +0800)]
MSVC Introspection Builds: Filter Out gtkx.h

Like the autotools builds of the introspection files, don't include gtkx.h
in the introspection prepropcessing as it should not be included by other
GTK+ headers.

11 years agogtk-inspector: size-groups.c: Fix build on pre-C99
Chun-wei Fan [Wed, 16 Jul 2014 09:58:20 +0000 (17:58 +0800)]
gtk-inspector: size-groups.c: Fix build on pre-C99

Declare variables at the top of the block.

11 years agoGtkListBox: Mention activatable and selectable in the docs
Matthias Clasen [Wed, 16 Jul 2014 03:45:27 +0000 (23:45 -0400)]
GtkListBox: Mention activatable and selectable in the docs

11 years agowidget-factory: Mark selectable listbox rows non-activatable
Matthias Clasen [Wed, 16 Jul 2014 03:53:37 +0000 (23:53 -0400)]
widget-factory: Mark selectable listbox rows non-activatable

Having them selectable is sufficient to get the hover effect.

11 years agoGtkListBox: Implement non-selectable rows
Matthias Clasen [Wed, 16 Jul 2014 03:14:28 +0000 (23:14 -0400)]
GtkListBox: Implement non-selectable rows

This commit changes things so that we never mark non-selectable
rows as selected.

11 years agoGtkListBox: Style selectable rows differently
Matthias Clasen [Wed, 16 Jul 2014 03:13:43 +0000 (23:13 -0400)]
GtkListBox: Style selectable rows differently

We now apply the .button style class to rows that are either
activatable or selectable. Selectable rows only get the .button
if the listbox allows selection. This implies that we need to
update row styles when the selection mode changes, or when the
row gets added to a listbox.

11 years agoGtkListBox: Add a GtkListBoxRow:selectable property
Matthias Clasen [Wed, 16 Jul 2014 03:10:51 +0000 (23:10 -0400)]
GtkListBox: Add a GtkListBoxRow:selectable property

Having an explicit property for this will make it easier
to have a hover style only for rows which are activatable
or selectable.

Rows are selectable by default, to preserve compatibility.

11 years agoFix documentation typos
Matthias Clasen [Wed, 16 Jul 2014 03:18:27 +0000 (23:18 -0400)]
Fix documentation typos

11 years agoGtkListBox: Refactor ::activatable implementation
Matthias Clasen [Wed, 16 Jul 2014 02:42:29 +0000 (22:42 -0400)]
GtkListBox: Refactor ::activatable implementation

Store the value in the row struct, and split the style updating
out into a separate function.

11 years agoTry harder to fix dialog titles
Matthias Clasen [Wed, 16 Jul 2014 01:29:59 +0000 (21:29 -0400)]
Try harder to fix dialog titles

https://bugzilla.gnome.org/show_bug.cgi?id=733099

11 years agoUpdate examples for new open-menu icon
Matthias Clasen [Wed, 16 Jul 2014 01:29:20 +0000 (21:29 -0400)]
Update examples for new open-menu icon

11 years agoGktIconTheme: Be even more careful with paths
Руслан Ижбулатов [Tue, 15 Jul 2014 16:42:39 +0000 (16:42 +0000)]
GktIconTheme: Be even more careful with paths

This is a followup for 5a252f13a863c00ccd9901afa110e85836a6af4c

https://bugzilla.gnome.org/show_bug.cgi?id=733189

11 years agogtkwindow: Clean up the code for an optimization
Jasper St. Pierre [Tue, 15 Jul 2014 18:42:36 +0000 (14:42 -0400)]
gtkwindow: Clean up the code for an optimization

It's hard to figure out what the "expected_reply" means except under
close examination -- it's actually talking about whether this was a
reply to a ConfigureRequest or not. The inversion in the check doesn't
help either.

Make the code cleaner by moving it above the freeze/thaw case, and
making the check more explicit and without a confusing variable. If we
haven't sent any ConfigureRequests out, then it must be a gratuitous
ConfigureNotify.

11 years agogtkwindow: Fix the comment for an optimization
Jasper St. Pierre [Tue, 15 Jul 2014 18:41:04 +0000 (14:41 -0400)]
gtkwindow: Fix the comment for an optimization

The optimization was incorrect, and so it was changed in commit
2bf6824, but the comment to go along with it was never updated.

11 years agoAdwaita: white search bar for the file chooser
Lapo Calamandrei [Tue, 15 Jul 2014 17:09:58 +0000 (19:09 +0200)]
Adwaita: white search bar for the file chooser

11 years agoAdwaita: correct background color for backdrop treeview column headers
Lapo Calamandrei [Tue, 15 Jul 2014 15:58:13 +0000 (17:58 +0200)]
Adwaita: correct background color for backdrop treeview column headers

11 years agoAdwaita: brighter depressed buttons
Lapo Calamandrei [Tue, 15 Jul 2014 15:52:11 +0000 (17:52 +0200)]
Adwaita: brighter depressed buttons

11 years agopathbar: Implement clipping
Benjamin Otte [Tue, 15 Jul 2014 12:35:32 +0000 (14:35 +0200)]
pathbar: Implement clipping

.. so the path bar's buttons can have shadows.

11 years agoAdwaita: reorderable tabs inhert in backdrop
Lapo Calamandrei [Tue, 15 Jul 2014 11:28:40 +0000 (13:28 +0200)]
Adwaita: reorderable tabs inhert in backdrop

11 years agoAdwaita: fix backdrop insensitie flat button
Lapo Calamandrei [Tue, 15 Jul 2014 11:01:48 +0000 (13:01 +0200)]
Adwaita: fix backdrop insensitie flat button

11 years agoAdwaita: selected list rows inhert in backdrop
Lapo Calamandrei [Tue, 15 Jul 2014 08:24:08 +0000 (10:24 +0200)]
Adwaita: selected list rows inhert in backdrop

11 years agoAdwaita: darker hover state again for spinbuttons button in the dark variant.
Lapo Calamandrei [Tue, 15 Jul 2014 07:11:56 +0000 (09:11 +0200)]
Adwaita: darker hover state again for spinbuttons button in the dark variant.

And for hovered list rows, since it works better and it's less
distracting.

11 years agowindow: Use CAIRO_OPERATOR_SOURCE to clear to background
Jasper St. Pierre [Mon, 14 Jul 2014 22:58:27 +0000 (18:58 -0400)]
window: Use CAIRO_OPERATOR_SOURCE to clear to background

Some windows, like GtkWindow and some other apps, set a transparent
background. The guarantee for begin_paint_region is that there should
be a full clear to the specified background color, not a composite
against what was there before.

This fixes repaint artifacts in Wayland and Weston in a better way than
76922c169f0699d9b85ef3eff2170f2cede1782c.

11 years agoRevert "wayland: Prevent stale paints and weird artifacts when using Weston"
Jasper St. Pierre [Mon, 14 Jul 2014 23:12:19 +0000 (19:12 -0400)]
Revert "wayland: Prevent stale paints and weird artifacts when using Weston"

This reverts commit 76922c169f0699d9b85ef3eff2170f2cede1782c.

This is too local a fix, and is broken if the user paints to a small
region, as the entire buffer will be wiped.

11 years agoGktIconTheme: Be more careful with paths
Matthias Clasen [Mon, 14 Jul 2014 22:44:00 +0000 (18:44 -0400)]
GktIconTheme: Be more careful with paths

Slapping file:// in front of a path does not guarantee a working
uri (e.g. if you are on windows and the path looks like F:\\...).
Therefore, go back to using g_file_new_for_path if we don't have
to deal with a resource.

11 years agoBump version
Matthias Clasen [Mon, 14 Jul 2014 22:26:33 +0000 (18:26 -0400)]
Bump version

11 years ago3.13.4
Matthias Clasen [Mon, 14 Jul 2014 18:11:25 +0000 (14:11 -0400)]
3.13.4

11 years agoForce the simple im module for reftests
Matthias Clasen [Mon, 14 Jul 2014 22:21:50 +0000 (18:21 -0400)]
Force the simple im module for reftests

I've seen reftests fail with IBus warnings. We should avoid that.

11 years agoUpdate expected output for a11y test
Matthias Clasen [Mon, 14 Jul 2014 18:36:41 +0000 (14:36 -0400)]
Update expected output for a11y test

11 years agoAdwaita: brighter spinbutton button active state for the dark variant.
Lapo Calamandrei [Mon, 14 Jul 2014 16:42:37 +0000 (18:42 +0200)]
Adwaita: brighter spinbutton button active state for the dark variant.

11 years agoAdwaita: bright spinbutton button hover effect in the dark variant.
Lapo Calamandrei [Mon, 14 Jul 2014 16:37:31 +0000 (18:37 +0200)]
Adwaita: bright spinbutton button hover effect in the dark variant.

In line with what we do for hovered list rows.

11 years agoAdwaita: list-row style
Lapo Calamandrei [Mon, 14 Jul 2014 16:29:08 +0000 (18:29 +0200)]
Adwaita: list-row style